package com.bootdo.hjh.domain;

import java.io.Serializable;
import java.util.Date;

public class SmsVerification implements Serializable {
    private Integer id;

    private String mobile;

    private String code;

    private Long operatorId;

    private Integer isUsed;

    private Date createTime;

    private Date lastModifyTime;

    private static final long serialVersionUID = 1L;

    private String updateSql;

    public SmsVerification() {
    }

    private SmsVerification(Builder builder) {
        setId(builder.id);
        setMobile(builder.mobile);
        setCode(builder.code);
        setOperatorId(builder.operatorId);
        setIsUsed(builder.isUsed);
        setCreateTime(builder.createTime);
        setLastModifyTime(builder.lastModifyTime);
        setUpdateSql(builder.updateSql);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public String getUpdateSql() {
        return this.updateSql;
    }

    public void setUpdateSql(String updateSql) {
        this.updateSql = updateSql;
    }


    public static final class Builder {
        private Integer id;
        private String mobile;
        private String code;
        private Long operatorId;
        private Integer isUsed;
        private Date createTime;
        private Date lastModifyTime;
        private String updateSql;

        private Builder() {
        }

        public Builder id(Integer val) {
            id = val;
            return this;
        }

        public Builder mobile(String val) {
            mobile = val;
            return this;
        }

        public Builder code(String val) {
            code = val;
            return this;
        }

        public Builder operatorId(Long val) {
            operatorId = val;
            return this;
        }

        public Builder isUsed(Integer val) {
            isUsed = val;
            return this;
        }

        public Builder createTime(Date val) {
            createTime = val;
            return this;
        }

        public Builder lastModifyTime(Date val) {
            lastModifyTime = val;
            return this;
        }

        public Builder updateSql(String val) {
            updateSql = val;
            return this;
        }

        public SmsVerification build() {
            return new SmsVerification(this);
        }
    }
}